/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[欢迎加盟知启蒙，一起邂逅框架梦]
 * 
 * https://www.zhiqim.com/gitcan/zhiqim/zhiqim_account.htm
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.zhiqim.account.dbo.user;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 用户认证表 对应表《USER_CERTIFICATION》
 */
@AnAlias("UserCertification")
@AnNew
@AnTable(table="USER_CERTIFICATION", key="TRANSACTION_ID", type="InnoDB")
public class UserCertification implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="USER_ID", type="long", notNull=true)    private long userId;    //1.用户编号
    @AnTableField(column="TRANSACTION_ID", type="string,32", notNull=true)    private String transactionId;    //2.认证编号
    @AnTableField(column="CERT_NAME", type="string,32", notNull=true)    private String certName;    //3.真实姓名
    @AnTableField(column="CERT_NO", type="string,18", notNull=true)    private String certNo;    //4.身份证号
    @AnTableField(column="BIZ_NO", type="string,32", notNull=true)    private String bizNo;    //5.本次认证的唯一标识
    @AnTableField(column="EP_CERT_TYPE", type="string,32", notNull=false)    private String epCertType;    //6.企业认证类型，NATIONAL_LEGAL：工商注册号，NATIONAL_LEGAL_MERGE：社会统一信用代码
    @AnTableField(column="EP_CERT_NAME", type="string,32", notNull=false)    private String epCertName;    //7.企业名称
    @AnTableField(column="EP_CERT_NO", type="string,32", notNull=false)    private String epCertNo;    //8.企业证件号
    @AnTableField(column="CERTIFICATION_STATUS", type="int", notNull=true)    private int certificationStatus;    //9.认证状态，0：未认证，1：认证成功，2：认证失败，3：失效
    @AnTableField(column="CERTIFICATION_END_TIME", type="string,19,char", notNull=true)    private String certificationEndTime;    //10.认证失效时间

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getUserId()
    {
        return userId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }

    public String getTransactionId()
    {
        return transactionId;
    }

    public void setTransactionId(String transactionId)
    {
        this.transactionId = transactionId;
    }

    public String getCertName()
    {
        return certName;
    }

    public void setCertName(String certName)
    {
        this.certName = certName;
    }

    public String getCertNo()
    {
        return certNo;
    }

    public void setCertNo(String certNo)
    {
        this.certNo = certNo;
    }

    public String getBizNo()
    {
        return bizNo;
    }

    public void setBizNo(String bizNo)
    {
        this.bizNo = bizNo;
    }

    public String getEpCertType()
    {
        return epCertType;
    }

    public void setEpCertType(String epCertType)
    {
        this.epCertType = epCertType;
    }

    public String getEpCertName()
    {
        return epCertName;
    }

    public void setEpCertName(String epCertName)
    {
        this.epCertName = epCertName;
    }

    public String getEpCertNo()
    {
        return epCertNo;
    }

    public void setEpCertNo(String epCertNo)
    {
        this.epCertNo = epCertNo;
    }

    public int getCertificationStatus()
    {
        return certificationStatus;
    }

    public void setCertificationStatus(int certificationStatus)
    {
        this.certificationStatus = certificationStatus;
    }

    public String getCertificationEndTime()
    {
        return certificationEndTime;
    }

    public void setCertificationEndTime(String certificationEndTime)
    {
        this.certificationEndTime = certificationEndTime;
    }

}
